// 创建canvas面板
export function creatCanvas(id, option) {
  let canvas = document.getElementById(id)
  let ctx = canvas.getContext('2d')
  let winW = option.width || document.documentElement.clientWidth
  let winH = option.height || document.documentElement.clientHeight
  canvas.width = winW
  canvas.height = winH
  return ctx
}
export default {
  creatCanvas 
}
